add_subdirectory(./other)
include_directories(${PROJECT_SOURCE_DIR}/include)

# include_directories(${CMAKE_SOURCE_DIR}/src)
# LINK_DIRECTORIES(${CMAKE_SOURCE_DIR}/lib)

# add_compile_options(-rdynamic)

# # 添加头文件搜索路径
# include_directories(/usr/local/include)

# # 添加库文件搜索路径
# link_directories(/usr/local/lib)

# aux_source_directory(${CMAKE_SOURCE_DIR}/src SRC_LIST) # 定义变量，存储当前目录下的所有源文件
# aux_source_directory(${CMAKE_SOURCE_DIR}/src/http HTTP_LIST)

# set(SRC_LIST ${SRC_LIST} ${HTTP_LIST})

# set(LIB_LIST yaml-cpp pthread dl http_parser jemalloc)

# # set(LIB_LIST ${LIBRARY_FILES})
# MESSAGE(${LIB_LIST})

# FILE(GLOB BIN_SRCS ${CMAKE_SOURCE_DIR}/test/*.cpp)

# FOREACH(bin_src ${BIN_SRCS})
# get_filename_component(bin_name ${bin_src} NAME_WE)
# add_executable(${bin_name} ${bin_src} ${SRC_LIST})
# target_link_libraries(${bin_name} ${LIB_LIST})
# ENDFOREACH(bin_src)

# add_executable(main main.cpp ${SRC_LIST})
# add_executable(test_address test_address.cpp ${SRC_LIST})
# add_executable(test_byteArray test_byteArray.cpp ${SRC_LIST})
# add_executable(test_channel test_channel.cpp ${SRC_LIST})
# add_executable(test_client_connect test_client_connect.cpp ${SRC_LIST})
# add_executable(test_comutex test_comutex.cpp ${SRC_LIST})
# add_executable(test_config test_config.cpp ${SRC_LIST})
# add_executable(test_copool test_copool.cpp ${SRC_LIST})
# add_executable(test_coroutine test_coroutine.cpp ${SRC_LIST})
# add_executable(test_epoll_et test_epoll_et.cpp)
# add_executable(test_fdmanager test_fdmanager.cpp ${SRC_LIST})
# add_executable(test_hook test_hook.cpp ${SRC_LIST})
# add_executable(test_http test_http.cpp ${SRC_LIST})
# add_executable(test_http_parser test_http_parser.cpp ${SRC_LIST})
# add_executable(test_http_request_parser test_http_request_parser.cpp ${SRC_LIST})
# add_executable(test_http_response_parser test_http_response_parser.cpp ${SRC_LIST})
# add_executable(test_http_server test_http_server.cpp ${SRC_LIST})
# add_executable(test_http_servlet test_http_servlet.cpp ${SRC_LIST})
# add_executable(test_http_session test_http_session.cpp ${SRC_LIST})
# add_executable(test_iomanager test_iomanager.cpp ${SRC_LIST})
# add_executable(test_jemalloc_ test_jemalloc.cpp ${SRC_LIST})
# add_executable(test_log test_log.cpp ${SRC_LIST})
# add_executable(test_marco test_marco.cpp ${SRC_LIST})
# add_executable(test_mutex test_mutex.cpp ${SRC_LIST})
# add_executable(test_process test_process.cpp ${SRC_LIST})
# add_executable(test_scheduler test_scheduler.cpp ${SRC_LIST})
# add_executable(test_signal test_signal.cpp ${SRC_LIST})
# add_executable(test_socket test_socket.cpp ${SRC_LIST})
# add_executable(test_tcpserver test_tcpserver.cpp ${SRC_LIST})

# # add_executable(test_template ${SRC_LIST})
# add_executable(test_thread test_thread.cpp ${SRC_LIST})
# add_executable(test_timer test_timer.cpp ${SRC_LIST})

# # target_link_libraries( test_config ${yaml-cpp_LIBS} )
# target_link_libraries(main ${LIB_LIST})
# target_link_libraries(test_address ${LIB_LIST})
# target_link_libraries(test_byteArray ${LIB_LIST})
# target_link_libraries(test_channel ${LIB_LIST})
# target_link_libraries(test_client_connect ${LIB_LIST})
# target_link_libraries(test_comutex ${LIB_LIST})
# target_link_libraries(test_config ${LIB_LIST})
# target_link_libraries(test_copool ${LIB_LIST})
# target_link_libraries(test_coroutine ${LIB_LIST})
# target_link_libraries(test_fdmanager ${LIB_LIST})
# target_link_libraries(test_hook ${LIB_LIST} -ldl)
# target_link_libraries(test_http ${LIB_LIST})
# target_link_libraries(test_http_parser ${LIB_LIST})
# target_link_libraries(test_http_request_parser ${LIB_LIST})
# target_link_libraries(test_http_response_parser ${LIB_LIST})
# target_link_libraries(test_http_server ${LIB_LIST})
# target_link_libraries(test_http_servlet ${LIB_LIST})
# target_link_libraries(test_http_session ${LIB_LIST})
# target_link_libraries(test_iomanager ${LIB_LIST})
# target_link_libraries(test_jemalloc_ ${LIB_LIST})
# target_link_libraries(test_log ${LIB_LIST})
# target_link_libraries(test_marco ${LIB_LIST})
# target_link_libraries(test_mutex ${LIB_LIST})
# target_link_libraries(test_process ${LIB_LIST})
# target_link_libraries(test_scheduler ${LIB_LIST})
# target_link_libraries(test_signal ${LIB_LIST})
# target_link_libraries(test_socket ${LIB_LIST})
# target_link_libraries(test_tcpserver ${LIB_LIST})
# target_link_libraries(test_thread ${LIB_LIST})
# target_link_libraries(test_timer ${LIB_LIST})